import React, { forwardRef } from 'react';
import { Form, Input } from 'antd';
const AttentionForm = forwardRef((props, ref) => {
  return (
    <Form ref={ref} layout="vertical" initialValues>
      <Form.Item
        name="title"
        label="需注意"
        rules={[{ required: true, message: '请输入注意内容' }]}
      >
        <Input />
      </Form.Item>
      <Form.Item
        name="content"
        label="原因"
        rules={[{ required: true, message: '请输入原因' }]}
      >
        <Input />
      </Form.Item>

      <Form.Item
        name="imgUrl"
        label="图片"
        rules={[{ required: true, message: '请添加图片' }]}
      >
        <Input />
      </Form.Item>
    </Form>
  );
});

export default AttentionForm;
